package xtu.www.inject.provide;

import android.app.Activity;
import android.content.Context;
import android.view.View;

/**
 * Created by huilin on 2017/7/10.
 */

public class ActivityProvide implements Provider {
    @Override
    public Context getContext(Object o) {
        return ((Activity) o);
    }

    @Override
    public View findView(Object o, int id) {
        return ((Activity) o).findViewById(id);
    }
}
